import request from '@/utils/request'

// 查询静态资源列表
export function listStatefile(query) {
  return request({
    url: '/statefile/statefile/list',
    method: 'get',
    params: query
  })
}

// 查询静态资源详细
export function getStatefile(id) {
  return request({
    url: '/statefile/statefile/' + id,
    method: 'get'
  })
}

// 新增静态资源
export function addStatefile(data) {
  return request({
    url: '/statefile/statefile',
    method: 'post',
    data: data
  })
}

// 修改静态资源
export function updateStatefile(data) {
  return request({
    url: '/statefile/statefile',
    method: 'put',
    data: data
  })
}

// 删除静态资源
export function delStatefile(id) {
  return request({
    url: '/statefile/statefile/' + id,
    method: 'delete'
  })
}
